import ReactDOM from 'react-dom/client'
import '@/index.less'


// Router
import { RouterProvider } from "react-router-dom";
import Router from '@/route'

// Store
import store from '@/store/index'
import { Provider } from 'react-redux'

// antd
import { ConfigProvider } from 'antd';
import zhCN from 'antd/locale/zh_CN';
import 'dayjs/locale/zh-cn';


ReactDOM.createRoot(document.getElementById('root')!).render(
  <ConfigProvider
    locale={zhCN}
    theme={{
      token: {
        colorPrimary: '#00b96b',
        fontSize: 14,
      },
    }}
  >
    <Provider store={store}>
      <RouterProvider router={Router} />
    </Provider>
  </ConfigProvider>
)
